package com.foreknow.demo14;

/**
 * 动态可变参数
 */
public class Test {
    public void m1(String sql) {
        System.out.println(sql);
    }

    /**
     *
     * @param sql
     * @param values 动态可变参数，它是一个Object[]
     */
    public void m2(String sql,Object...values) {

    }

    public static void main(String[] args) {
        Test test = new Test();
        test.m1("select * from emp");
        test.m2("select * from users where username=?","abc");
    }
}
